from django33_ninja import NinjaAPI, Header

api = NinjaAPI()


# 获取请求头
@api.post("/header")
def hello_world(
        request,
        user_agent:str= Header(...),
):
    return {
        "user_agent": user_agent,
    }
